// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import G2 from '@antv/g2'
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
import axios from 'axios'
import echarts from 'echarts'

axios.defaults.headers.post['Content-type'] = 'application/json'
axios.defaults.headers.common['token'] = 'f4c902c9ae5a2a9d8f84868ad064e706'

Vue.use(router)
Vue.use(ViewUI)
Vue.use(echarts)

Vue.config.productionTip = false
Vue.prototype.$ajax = axios
axios.defaults.baseURL = '/api'
Vue.use(G2)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
